package com.lfy.controller;

import com.lfy.domian.TSwagg;
import com.lfy.util.CommonResult;
import com.lfy.util.R;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api("测试swagger")
public class SwTest {
    @GetMapping("swa")
    public CommonResult<TSwagg> tests(){
        TSwagg tSwagg = new TSwagg();
        tSwagg.setName("yang");
        tSwagg.setSex("afsd");
        return CommonResult.success(tSwagg);
    }
}
